//
//  PeiSongStyleView.m
//  Experss
//
//  Created by wmwMAC on 17/8/7.
//  Copyright © 2017年 嗯，大葱. All rights reserved.
//

#import "PeiSongStyleView.h"

@implementation PeiSongStyleView

-(instancetype)initWithFrame:(CGRect)frame{
   self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self addSubViews];
    }
    return self;
}

-(void)addSubViews{
    
    UILabel *titleLable = [BasePublicCreatUI createLabelFrame:CGRectMake(20, 0, 90, CGRectGetHeight(self.frame)) title:@"配送方式" textColor:[UIColor blackColor] textAlignment:NSTextAlignmentLeft font:[UIFont systemFontOfSize:14]];
    [self addSubview:titleLable];
    
    UILabel *typeLable = [BasePublicCreatUI createLabelFrame:CGRectMake(CGRectGetMaxX(titleLable.frame)+5, 5, CGRectGetWidth(self.frame)-100-25, CGRectGetHeight(self.frame)/2-5) title:@"百事亨通同城配送" textColor:[UIColor blackColor] textAlignment:NSTextAlignmentLeft font:[UIFont systemFontOfSize:14]];
    typeLable.textAlignment = NSTextAlignmentRight;
    [self addSubview:typeLable];
    
    
    UILabel *timeLable = [BasePublicCreatUI createLabelFrame:CGRectMake(CGRectGetMaxX(titleLable.frame)+5,  CGRectGetHeight(self.frame)/2, CGRectGetWidth(self.frame)-100-25, CGRectGetHeight(self.frame)/2-5) title:@"当天15:00前下单次日送达" textColor:[UIColor lightGrayColor] textAlignment:NSTextAlignmentLeft font:[UIFont systemFontOfSize:12]];
    timeLable.textAlignment = NSTextAlignmentRight;
    [self addSubview:timeLable];

    
    
}







@end
